package com.gitee.bridge.abs;


import com.gitee.bridge.function.RegisterLoginFuncInterface;
import com.gitee.pojo.UserInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户登录 第三方登录
 * 具体抽象化角色
 *
 * @author acao
 * @since 2023-11-06 09:56
 */
public class RegisterLoginComponent extends AbstractRegisterLoginComponent {

    public RegisterLoginComponent(RegisterLoginFuncInterface funcInterface) {
        super(funcInterface);
    }

    @Override
    public String login(String username, String password) {
        return funcInterface.login(username, password);
    }

    @Override
    public String register(UserInfo userInfo) {
        return funcInterface.register(userInfo);
    }

    @Override
    public boolean checkUserExists(String userName) {
        return funcInterface.checkUserExists(userName);
    }

    @Override
    public String login3rd(HttpServletRequest request) {
        return funcInterface.login3rd(request);
    }
}
